﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Facebook.Web.Configuration;
using System.Configuration;

namespace FriendsNearby.Services
{
    public class ConfigHelper
    {
        public static FacebookApplicationSettings FriendsNearbySettings
        {
            get
            {
                FacebookSection section = (FacebookSection) ConfigurationManager.GetSection("facebook");
                return section.Applications["FriendsNearby"];
            }
        }

        public static string FacebookApplicationKey
        {
            get { return FriendsNearbySettings.ApiKey; }
        }

        public static string FacebookSecretKey
        {
            get { return FriendsNearbySettings.Secret; }
        }
    }
}
